'use strict';

// Configuring the Articles module
angular.module('CBO').run(['Menus',
    function(Menus) {
        Menus.addMenuItem('topbar', {title: '基础设置', state: 'CBO', type: 'dropdown', roles: ['*']});

        Menus.addSubMenuItem('topbar', 'CBO', {title: '扩展枚举', state: 'ExtendEnum'});
        Menus.addSubMenuItem('topbar', 'CBO', {title: '扩展枚举列表', state: 'ExtendEnumList'});

        Menus.addSubMenuItem('topbar', 'CBO', {title: '料品', state: 'ItemMaster'});
        Menus.addSubMenuItem('topbar', 'CBO', {title: '料品列表', state: 'ItemMasterList'});

        Menus.addSubMenuItem('topbar', 'CBO', {title: '部门', state: 'Department'});
        Menus.addSubMenuItem('topbar', 'CBO', {title: '部门列表', state: 'DepartmentList'});

        Menus.addSubMenuItem('topbar', 'CBO', {title: '作业', state: 'Work'});
        Menus.addSubMenuItem('topbar', 'CBO', {title: '作业列表', state: 'WorkList'});

        Menus.addSubMenuItem('topbar', 'CBO', {title: '工位', state: 'WorkLocation'});
        Menus.addSubMenuItem('topbar', 'CBO', {title: '工位列表', state: 'WorkLocationList'});

        Menus.addSubMenuItem('topbar', 'CBO', {title: '工艺路线', state: 'Routing'});
        Menus.addSubMenuItem('topbar', 'CBO', {title: '工艺路线列表', state: 'RoutingList'});

        Menus.addSubMenuItem('topbar', 'CBO', {title: '用户', state: 'User'});
        Menus.addSubMenuItem('topbar', 'CBO', {title: '用户列表', state: 'UserList'});

        Menus.addSubMenuItem('topbar', 'CBO', {title: '角色', state: 'Role'});
        Menus.addSubMenuItem('topbar', 'CBO', {title: '角色列表', state: 'RoleList'});

        Menus.addSubMenuItem('topbar', 'CBO', {title: '菜单', state: 'Menu'});
        Menus.addSubMenuItem('topbar', 'CBO', {title: '菜单列表', state: 'MenuList'});
    }
]);
